package com.cty.C_SortAlgorithms.E_MergeSort;

import com.cty.C_SortAlgorithms.D_ShellSort.ShellSort;
import com.cty.F_common.DataItem;

/**
 * @Auther: cty
 * @Date: 2020/6/17 9:27
 * @Description:  测试归并排序
 * @version: 1.0
 */
public class MergeSortApp {
    public static void main(String[] args) {
        MergeSort array = new MergeSort(100);

        long key;
        for(int i=0; i<10; i++){
            key = (long) (Math.random()*99);
            array.insert(new DataItem(key));
        }
        array.displayArray();

        array.mergeSort();
        array.displayArray();

    }  // end main()
}  // end BubbleSortApp{}

/**
 * 35 44 97 64 32 4 22 25 59 64
 * 4 22 25 32 35 44 59 64 64 97
 */
